package com.kaishengit.pojo;

import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name="t_type")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Type {
	
	private int id;
	private String group;
	private String workmate;
	
	private Set<Employee> employeeSet;
	
	
	
	
	public String getGroup() {
		return group;
	}
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public void setGroup(String group) {
		this.group = group;
	}
	public String getWorkmate() {
		return workmate;
	}
	public void setWorkmate(String workmate) {
		this.workmate = workmate;
	}
	@ManyToMany(mappedBy="typeSet")
	public Set<Employee> getEmployeeSet() {
		return employeeSet;
	}
	public void setEmployeeSet(Set<Employee> employeeSet) {
		this.employeeSet = employeeSet;
	}
	
	

}
